Ext.ns('TaxonTagger')
if (TaxonTagger.mainViewport) {
	Ext.apply(TaxonTagger.mainViewport.prototype, {
		viewportTitle: 'TaxonTagger - Name Finding Service '
	});
}
if (TaxonTagger.classficaionView) {
	Ext.apply(TaxonTagger.classficaionView.prototype, {
			viewportTitle: 'Classificaion - Name Finding Service '
		,	txtRemoveTitle: 'Remove All Names'
		,	txtRemoveMsg: 'All names will be remove from list. Click "Yes" to continue.'
		
	});
}
if(TaxonTagger.taggerpanel){
	Ext.apply(TaxonTagger.taggerpanel.prototype, {
			title:'Document'
		,	txtblankText:'Please select or enter url.'
		,	txtemptyText:'Enter or select a url...'
		,	txtUrlText:'Please enter valid url.'
		,	txtUrlField:'URL: '	
		,	txtMarkName:'Mark Scientific Name'
		,	txtMarkNameTip: 'Highlight a word in the document below then click here to mark the word(s) as a scientific name.'
		,	txtLoadBtn: 'Load'
		,	txtLoadBtnTip: 'This will analyze the url provided for scientific names.'
		,	txtWeblinkLocalTip: 'Go directly to web url in new browser window.'
		,	txtNoticeTitle: 'Notice'
		,	msgEmptyMark: 'Please mark scientific name'
		,	txtToggleName: 'Toggle Names'
		,	txtToggleNameTip: 'Click to switch between abbreviated and full name.'
		,	txtResetLocalTip: 'Reset Local Changes, Comments and additions.'
		,	txtSwitchToTaxonModeTip: 'Switch to Taxon Mode'
		,	msgMarkFailure: 'Document request was not successful.'
		,	msgDocumentAlreadyLoaded: 'Document is already loaded.'
		,	txtLoadMask: 'Loading...'
		,	msgDelayMask: 'Analyzing...'
		,	txtMenuCheckList: 'GBIF Checklist Bank'
		,	txtMenuCommentEdit: 'Edit Comment'
		,	txtMenuAddAuthor: 'Add '
		,	txtMenuReplaceAuthor: 'Replace '
		,	txtMenuRemoveAuthor: 'Remove '
		,	txtComment: 'Comment: '
		,	txtTaxamatch: 'Taxamatch'
		,	titleShowTaxamatch: 'TaxaMatch - Verbatim Name '
	});
}
if(TaxonTagger.gridpanel){
	Ext.apply(TaxonTagger.gridpanel.prototype, {
			title:'Grid View'
		,	emptyMsg:'No data to display.'
		,	txtComments:'Comment: '
		,	msgNoticeTitle:'Notice'	
		,	msgNoticeSelect:'Select scientific name.'
		,	msgNoticeNoSciAvail: 'No scientific name available.'
		,	msgNoticeNoSciSel:	'No scientific name selected.'
		,	txtMenuCheckList: 'GBIF Checklist Bank'
		,	txtMenuCommentEdit: 'Edit Comment'
		,	txtMenuRemoveSci: 'Remove '
		,	txtTaxamatch: 'Taxamatch'
		,	titleShowTaxamatch: 'TaxaMatch - Verbatim Name '
	});
}
if(TaxonTagger.docinfoPanel){
	Ext.apply(TaxonTagger.docinfoPanel.prototype, {
			title: 'Info'
		,	txtFieldTitle: 'Title'	
		,	txtFieldAuthor: 'Author(s)'	
		,	txtFieldPublisher: 'Publisher'	
		,	txtFieldDate: 'Date'	
		,	txtFieldIssn: 'ISSN'
		,	txtFieldIsbn: 'ISBN'
		,	txtFieldDoi: 'DOI'
		,	txtFieldSici: 'SICI'
		,	txtFieldUrl:'Url'
	});
}
if(TaxonTagger.delimitedList){
	Ext.apply(TaxonTagger.delimitedList.prototype, {
			title: 'Delimited'
	});
}
if(TaxonTagger.whiteList){
	Ext.apply(TaxonTagger.whiteList.prototype, {
			title: 'White List'
		});
}
if (TaxonTagger.TaxamatchLookup) {
	Ext.apply(TaxonTagger.TaxamatchLookup.prototype, {
			txtTbarSciName: 'Scientific Name: '
		,	txtemptyText: 'search scientific name...'	
		,	txtTbarSearch: 'Search'
		,	msgNoticeTitle:'Notice'	
		,	msgNoticeSelect:'Select scientific name.'
		,	msgNoticeSearch: 'Please enter scientific name to search.'
		,	msgNoticeSciName: 'Scientific name'
		,	msgNoticeAssigned: 'assigned'
		,	btnFbarSciName: 'Assign as Scientific Name'
		,	btnFbarClose: 'Close'
	});
}
if(TaxonTagger.settings){
	Ext.apply(TaxonTagger.settings.prototype, {
			title: 'Options'
		,	txtSaveClose:'Save & Close'	
		,	txtClose:'Close'	
		,	viewportTitle: 'TaxonTagger - Name Finding Service '
	});
}
if(TaxonTagger.comments){
	Ext.apply(TaxonTagger.comments.prototype, {
			txtClearComment:'Clear Comment'
		,	txtSaveClose:'Save & Close'	
		,	txtClose:'Close'	
		});
}
if(TaxonTagger.addNames){
	Ext.apply(TaxonTagger.addNames.prototype, {
			title: 'New Scientific Names'
		,	txtDirection: 'Directions: Please paste your list as one name per row then click "Add Names".'	
		,	txtClearName:'Clear Names'
		,	txtSaveClose:'Add Names'	
		,	txtClose:'Cancel'	
		});
} 
if(TaxonTagger.FileSettings ){
	Ext.apply(TaxonTagger.FileSettings .prototype, {
			title: 'Delimiter'
		,	txtFieldSetting: 'File Settings'
		,	txtFieldRadioCsv: 'CSV File'
		,	txtFieldRadioTab: 'Tab Separated File'	
		,	txtFieldRadioCustom: 'Custom Format'	
		});
}

if(TaxonTagger.toolbar){
	Ext.apply(TaxonTagger.toolbar.prototype, {
			txtExportBtn: 'Export'
		,	txtDWCBtn: 'DarwinCore Archive'
		,	txtDelimitedBtn: 'Delimited File'
		,	txtTextFileBtn: 'Text File'
		,	txtWebLinkBtn: 'Web Link'
		,	txtViewBtn: 'View'
		,	txtAddNames: 'Add Names'
		,	txtDocumentMode:'Document Mode'
		,	txtTaxonMode:'Taxon Mode'
		,	txtToolsBtn: 'Tools'
		,	txtOptionBtn: 'Options...'	
		,   txtHelpBtn: 'Help'	
		,	txtAboutBtn:'About'	
		,	txtTutorialBtn: 'Tutorial'
		,	txGetStartBtn:'Getting Started'		
		,	txtProWebBtn:'Project Website'
		,	txtReportIssueBtn: 'Report Issue'
		,	txtClearList: 'Clear List'
		,	msgTitle: 'Notice'		
		,	msgDownload: 'Please wait your information is being generated.'
		,	txtLanCombo:'Language:  '
		,	alertAboutTitle: 'About TaxonTagger'
		,	alertAboutClassfication: 'About Classfication'
		,	alertAboutmsg: 	'Developed By: GBIF & SilverBiology<br>Version: 1.0'
		,	tooltipAddName: 'Add new scientific names to classification list.'
		,	tooltipRemoveName: 'Remove all names from classification list.'
	});
}

if(TaxonTagger.NameGrid){
	Ext.apply(TaxonTagger.NameGrid.prototype, {
			title: 'Classification'
		,	bbarTxt: 'Select source from list and click "Classify" to begin.'
		,	bbarClassifyTxt: 'Double click row to view source website.'
		,	toolsTxt: 'Switch to Document Mode'
		,	txtClassifyBtn: 'Classify'
		,	txtRemoveName: 'Remove Name'
		,	txtClassifyBtnTip: 'This will lookup the Scientific Name against the GBIF Checklist Bank based on the selected Authority.'
		,	txtUrl: 'URL: '
		,	txtEmptyUrlCombo: 'Enter or select a url...'
		,	txtBlankUrlCombo: 'Please select or enter url.'
		,	txtUrlCombo: 'Enter valid url'
		,	txtPrimaryComboTip: 'Primary Authority'
		,	txtSecondaryComboTip: 'Secondary Authority'
		,	txtEmptyView: 'No information available.'
		,	txtLoadBtn: 'Load'
		,	txtLoadBtnTip: 'This will analyze the url provided for scientific names.'
		,	msgLoadMask: 'Analyzing...'
		,	txtGBIFChecklistBank: 'GBIF Checklist Bank'
		,	txtEditCommment: 'Edit Commment'
		,	txtTaxamatch: 'Taxamatch'
		,	titleShowComment: 'Comment: '
		,	titleShowTaxamatch: 'TaxaMatch - Verbatim Name '
		,	msgNoticeTitle: 'Notice'
		,	msgNoGbifId: 'No GBIF identification available to view.'
		,	msgClassifyNotice: 'Scientific names are not marked.'
		,	msgEmptyLoadDoc: 'Enter or select url'
		,	msgValidLoadDoc: 'Please enter valid url'
		,	msgAlreadyLoadedDoc: 'Document is already loaded.'
		,	msgAlreadyClassified: 'Already classified.'
		,	msgFailure: 'Unable to process.'
		,	msgNoClassifaction: 'No classification available for your chosen authorities.'
		,	titleExportButton: 'TaxonTagger Export'
		,	txtExportButton: 'Download Excel File'
	});
}

if(TaxonTagger.generalPanel){
	Ext.apply(TaxonTagger.generalPanel.prototype, {
			title: 'General'
		,	flNameServer: 'Name Finding Server'
		,	flUseLocalStorage: 'Use local storage'
		,	flPrimaryCombo: 'Primary  Taxonomic Authority'
		,	flSecondaryCombo: 'Secondary  Taxonomic Authority'
	})
}